# -*- coding: utf-8 -*-
# @Time: 2025/5/19 21:18
# @Author: wzd
# @Email: 2146333089@qq.com
# @File: urls.py

from django.urls import path
from .views import create_course, get_course_detail, enroll_course, get_course_students, upload_course_materials, upload_course_material, update_course
urlpatterns = [
    path('create/', create_course, name='create_course'),
    path('enroll/', enroll_course, name='enroll_course'),
    path('<slug:slug>/', get_course_detail, name='get_course_detail'),
    path('course_students/<slug:slug>/', get_course_students, name='get_course_students'),
    path('upload_materuals/', upload_course_materials, name='upload_course_materials'),
    path('upload_materual/', upload_course_material, name='upload_course_material'),
    path('update', update_course, name='update_course'),
]